<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    fetch('http://restapi.amap.com/v3/config/district?key=992a7d324822ede13b540481bda36f95')
    .then(async res => {
      const province = await res.json()
      console.log(province)
    })
    const obj = {
      name:'zz',
      sex:20
    }
    var i = 10;
    while (i < 0) {
      i--
    }
    const temp = {
      set(target, key, val){
        console.log(target, key, val)

      },
      get(){}
    }
    const proxy = new Proxy(obj, temp)
    // obj.name = 'bb'
    obj.name = 'bb'
    // console.log(proxy.name)
    function testF(...age) {
      console.log(this, ...age)
    }
    Reflect.apply(testF, obj, [ 1,2,3])
    Reflect.has
    
  </script>
</body>
</html>